package io;

import java.io.*;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;

public class FormattedMemoryInput {
    public static void main(String[] args) {
        try (
                DataInputStream in = new DataInputStream(
                        new ByteArrayInputStream(
                                BufferedInputFile1.read(
                                        "D:\\test\\java\\src\\main\\java\\io\\BufferedInputFile1.java")
                                        .getBytes()))
        ) {
            while (true)
                System.out.write((char) in.readByte());

        } catch (EOFException e) {
            System.out.println("\nEnd of stream");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
